package com.factory.iamp.utils.helper;

import lombok.Getter;

@Getter
public enum ResponseCode {
    SUCCESS(10000,"成功"),
    FAILED(40001,"失败"),
    VALIDATE_FAILED(40002, "参数校验失败"),
    WRONG_PASSWORD(40102, "密码错误"),
    PERMISSION_DENIED(40202, "权限不足，禁止访问"),
    LINE_PERMISSION_DENIED(40203, "产线权限不足，请联系管理员处理"),
    DATABASE_FAILED(40003, "数据库错误"),
    SERVER_FAILED(40004, "服务器错误"),
    ERROR(50000, "未知错误");

    private int code;
    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
